<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <?php
    $this->title = "Admin";
    $this->headTitle($this->title);
    ?>
<div id="content">
    <div id="inner">
        <div class="left float-l">
            <h2>Edit a product</h2>
            <div class="float-l"></div>
            <table>
                <tr>
                    <td>Select a product:
                </tr>
                <tr>
                    <td>
                        <div id="editproduct">
                            <select id="editproducts" class="products">
                                <?php
                                foreach ($this->allproducts as $loop) {
                                    echo "<option>";
                                    print_r($loop['product_name']);
                                    echo "</option>";
                                } ?>
                            </select>
                        </div>
                    </td>
                    <td><input type="button" value="Edit" id="editprod"></td>
                </tr>
            </table>
            <br><br>
            <div id="prodform">
                <?php
                                print_r($this->prodName);
                                echo $this->form;
                ?>
            </div>
        </div>
        <div class="right folat-r">
            <div id="side">
                <div id="top">
                    <h2>My side:</h2>
                    <ul class="meun">
                        <li> <a href="/admin/editprods">Back to edit products</a></li>
                        <li>  <a href="/admin">Back to main page</a></li>
                    </ul>
                </div>
                <div id="bm">
                </div>
            </div>
        </div>
    </div>
</div>
<!-- /content -->